﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Script.Services;
using Hematology.Data;
using Hematology.Tools.Text;

namespace Hematology.UserSite.service
{
    /// <summary>
    /// Summary description for MembershipService
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ScriptService]
	public class NgoValidation : System.Web.Services.WebService
    {
		public NgoValidation()
		{

		}

    	[WebMethod]
        public bool IsUsernameAvailable(string username)
        {
            return true;
            //return SiteUserExtended.GetUserByName(username) == null;
        }

		[WebMethod]
		public bool IsEmail(string email)
		{
			return RegexHelper.IsEmail(email);
		}
    }
}
